package com.example.tests;

import org.testng.Assert;
import org.testng.annotations.Test;
import com.example.fw.Contact;

public class ContactCreationTest extends TestBase{
	
	@Test
	public void shouldCreateContactWithValidData(){
		
		Contact contact = new Contact().setFirstName("firstname").setLastName("lastname");
		app.getContactHelper().createContact(contact);
		Contact createdContact = app.getContactHelper().getFirstContact();
		
		System.out.println("contact: " + contact);
		System.out.println("createdContact: " + createdContact);
		
		Assert.assertEquals(contact, createdContact);
	}

}
